/*
@hehung
2023-5-22
email: 1398660197@qq.com
wechat: hehung95
reproduced and please indicate the source @hehung
*/

#ifndef APP_LED_H_
#define APP_LED_H_

#include "hal_data.h"


#define LED_CTRL_METHOD_PWM        (1U)
#define LED_CTRL_METHOD_IO         (0U)
#define LED_CTRL_TYPE              (LED_CTRL_METHOD_PWM)


// Total number of leds
#define LED_TOTAL_NUM              (3U)
#define LED_3                      (2U)
#define LED_2                      (1U)
#define LED_1                      (0U)


extern void Led_Init(void);
extern void Led_Ctrl(uint8_t led_num, uint8_t led_level);
extern void Led_Running(void);
extern void Led_DutyCycleCtrl_Led1(uint8_t duty_cycle);
extern uint8_t Led_GetDutyCycle_Led1(void);

#endif /* APP_LED_H_ */